package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 俱乐部会员绑定课程表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClubUsersCourse extends Model<ClubUsersCourse> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 课程id
     */
    private String courseId;

    /**
     * 会员id
     */
    private String clubUsersId;

    /**
     * 会员名称
     */
    private String userName;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 0-已完成的课程 1-正在学习的课程
     */
    private Integer status;

    /**
     * 创建人ID
     */
    private String createUser;

    /**
     * 0-在读课程 1-历史课程
     */
    private Integer type;


    public static final String ID = "id";

    public static final String COURSE_ID = "course_id";

    public static final String CLUB_USERS_ID = "club_users_id";

    public static final String USER_NAME = "user_name";

    public static final String COURSE_NAME = "course_name";

    public static final String CREATE_TIME = "create_time";

    public static final String STATUS = "status";

    public static final String CREATE_USER = "create_user";

    public static final String TYPE = "type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
